Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Project model for chants & return segment to a source-level object #1548

Merged
merged 9 commits into from
Jul 10, 2024

Conversation

dchiller
Copy link
Contributor

@dchiller dchiller commented Jun 18, 2024

Closes #1541. Removes the segment field from the BaseChant model. With this PR, segment returns to a property of sources, not changes.

Closes #1542. Adds the Project model and the project field as a foreign key on BaseChant. A chant's project can be used to designate that it is part of a particular inventorying project or to designate that certain specific fields are relevant to that chant (for example, chants in the "Benedicamus Domino" project have additional fields shown on the Chant Create and Chant Edit pages. Functionality for special Benedicamus Domino fields that had been commented out in #1521 have been restored. Modifies test functions, including make_fake_chant to reflect this change.

This PR also add the assign_sequences_to_bower_project command to assign existing Sequences to the "Clavis Sequentiarum" project. It removes the assign_chants_to_segments command as no longer necessary. Relevant tests are added and removed respectively for these commands.

NOTE: The two current projects, "Clavis Sequentiarum" and "Benedicamus Domino", require manually adding these projects through the Admin panel before Chants can be assigned to those projects.

While I was thinking about sequences, also closes #1544.

dchiller added 6 commits June 18, 2024 12:14
Remove segment field from chants and sequences
Add project field to chants and sequences
The assign_sequences_to_bower_project command fills in the new project
field on sequences with the Clavis Sequentiarum project.

Also, creates relevant test.
@dchiller dchiller requested a review from lucasmarchd01 June 18, 2024 18:27
@dchiller dchiller marked this pull request as ready for review June 18, 2024 18:28
@dchiller dchiller removed the request for review from lucasmarchd01 June 18, 2024 18:44
Copy link
Contributor

@lucasmarchd01 lucasmarchd01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good to me, but should probably check out what's going on with the failing tests before merging!

@dchiller
Copy link
Contributor Author

Thanks for taking a look! Yeah, I’ve been meaning to get to the tests. I’ll figure those out and alert you if it means anything substantive has to change.

@dchiller dchiller merged commit f17e934 into DDMAL:develop Jul 10, 2024
1 check passed
@dchiller dchiller deleted the i1541-return-segment-to-source-level branch July 10, 2024 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants